//
//  MatchSecData.m
//  __PRODUCTNAME__
//
//  Created by LL.F on 16/09/09
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "MatchSecData.h"
#import "MatchThirdData.h"

@implementation MatchSecData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [MatchThirdData class]};
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        _id_Data = value;
        
    }
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<MatchThirdData *>  *dataArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            MatchThirdData *data = [MatchThirdData modelWithDic:dic];
            [dataArray addObject:data];
        }
        _data = dataArray;
    }
}
@end
